<div class="accordion" id="plug-participants-{{ type }}-list">
{% for groups in contacts %}
	<div class="accordion-group" style="border:0px;">
		<div class="accordion-heading">
			<a href="#plug-participants-{{ type }}-id-{% if type == 'contacts' %}{{ groups.account.id }}{% elseif type == 'groups' %}{{ groups.group.id }}{% endif %}" data-toggle="collapse" class="accordion-toggle">{% if type == 'contacts' %}{{ groups.account.title }} ({{ groups.account.name }}){% elseif type == 'groups' %}{{ group.title }}{% endif %}</a>
		</div>
		<div class="in collapse" id="plug-participants-{{ type }}-id-{% if type == 'contacts' %}{{ groups.account.id }}{% elseif type == 'groups' %}{{ groups.group.id }}{% endif %}" style="height: auto;">
			<div class="accordion-inner">
				<div class="controls">
				{% for contact in groups.directory %}
					{% set contactUser = contact %}
					{% for contactLinked in participantsIdLinked %}
						{% if contactLinked.contactLink.id == contact.id %}
    						{% set contactUser = contactLinked %}
    					{% endif %}
    				{% endfor %}
					<label class="checkbox">
						<input type="checkbox" value="{{ contactUser.id }}" /> 
						<span>{{ contact }}</span>
					</label>
				{% endfor %}
				</div>
			</div>
		</div>
	</div>
{% else %}
	{% if type == 'contacts' %}
	<div class="alert">Vous n\'avez aucun contact</div>
	{% elseif type == 'groups' %}
	<div class="alert">Vous n\'avez aucun group</div>
	{% endif %}
{% endfor %}
</div>